Skip to content

Instantly share code, notes, and snippets.

@lexium-ai
lexium-ai / gist:837bec36f0145ca6adc100c6adb76da5
Created November 8, 2026 15:49
How to Validate XRechnung 3.0.2, Peppol BIS 3.0.21 & KSeF FA(3) Locally in the Browser with WebAssembly (Zero Server Upload)
Key Technical Links:
- [Autum8 Live Local Validator & Repair Workspace](https://autum8.co/ready/)
- [EU ViDA & EN 16931 Multi-Country Compliance Guide](https://autum8.co/en/eu-vat-in-the-digital-age-vida-en16931-compliance/)
- [German § 14 UStG B2B Mandate & XRechnung 3.0.2 Guide](https://autum8.co/en/german-b2b-e-invoicing-mandate-ustg-14-xrechnung-zugferd/)
- [Belgian B2B Peppol 3.0.21 & KBO/BCE 0208 Guide (NL)](https://autum8.co/nl-be/verplichte-b2b-e-facturatie-belgie-2026-peppol-kbo-0208/)
- [Polish KSeF FA(3) 1-0E Schema & Accounting Batch Guide (PL)](https://autum8.co/pl-pl/obowiazkowy-ksef-2026-walidacja-fa3-biuro-rachunkowe/)
- [French Factur-X EN 16931 & Chorus Pro / PDP Guide (FR)](https://autum8.co/fr-fr/facturation-electronique-obligatoire-2026-factur-x-pdp-chorus-pro/)
@farminf
farminf / nespresso_expert_hack.md
Last active November 8, 2026 16:06
Hacking Nespresso Expert Machine to brew coffee using custom applications via bluetooth

Nespresso Expert machine Hack (Bluetooth)

Nespresso Expert machine has the Bluetooth ability which officially can be used only by Nespresso mobile app and it does not offer any API for 3rd party applications and services. Moreover, the Bluetooth services and characteristics are not documented and easy to use by the other Bluetooth libraries plus there is no documentation for the Bluetooth packets payload that need to be sent or received.

However, after searching a lot and sniffing the packets for a couple of days, I've been able to hack the machine and write the small nodejs application using noble and express to control and monitor the machine with Rest API exposed by express through Bluetooth connection. As I did this application for my ex-company and they are still using it for their demo I cannot share the code but I'm going to explain how it works.

_Thanks to this

@lifepillar
lifepillar / 24-bit-color.sh
Created November 20, 2017 11:48
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()
@Kartones
Kartones / postgres-cheatsheet.md
Last active November 8, 2026 15:58
PostgreSQL command line cheatsheet

PSQL Cheatsheet

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@Pythonation
Pythonation / prompt.md
Last active November 8, 2026 15:53
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@Mr-Precise
Mr-Precise / vs_buildtools_dl_list.md
Last active November 8, 2026 15:51
MSVC / VS / Buildtools download link collection list

Wacom EMR Pen — Reverse Engineering Research Journey

A documentation of multilingual deep-dive research into DIY, reverse engineering, and cross-compatibility of Wacom EMR pens. Conducted in February 2026 by Claude Sonnet 4.6.


The Problem

Two working Wacom tablets with no pens. Official pens discontinued. No stores ship to the region. The question became: has anyone in the world figured out how to build or substitute one?

@taichikuji
taichikuji / README.md
Last active November 8, 2026 15:34
Get a DDNS up and running with DuckDNS - Step by Step

Get a DDNS up and running with DuckDNS - Step by Step

Understanding DDNS

In summary, DDNS stands for Dynamic DNS. DDNS updates a DNS name in real-time to point to a changing IP address. This is useful for devices without a static IP. For example, companies like Google use static IPs and IP ranges, which are more expensive than ephemeral IPs and IP ranges. DDNS provides a cost-effective alternative, linking a hostname to a dynamic IP address.

How Does DDNS Work?

To use DDNS, you need an account with a DDNS provider. While some services are paid, they are still cheaper than static public IPs from ISPs. A script or service on your device updates the DDNS server with your current IP at regular intervals to maintain the link between your hostname and IP address. Luckily for us, DuckDNS is free for everybody and relays on donations to keep their services running.

@derkalle4
derkalle4 / attach.sh
Created November 8, 2026 15:09
Simple docker CS2-Server attach script for /joedwards32/CS2
#!/usr/bin/env bash
CUSTOM_DETACH_MSG="Detached from CS2 console. Server continues running."
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR" || exit 1
if [[ ! -f "docker-compose.yml" && ! -f "compose.yaml" && ! -f "compose.yml" ]]; then
echo "Error: No docker compose file found in $SCRIPT_DIR"
exit 1
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 8, 2026 15:08
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized